package com.tsll.service.impl;

import com.tsll.dao.BookTypeMapper;
import com.tsll.entity.Booktype;
import com.tsll.service.BookTypeService;
import com.tsll.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class BookTypeServiceImpl implements BookTypeService {
    @Autowired
    private BookTypeMapper booktypeMapper;
//    图书类型
    public Result finAll() {
        List<Booktype> booktypes = booktypeMapper.selectAll();
        return new Result(200,"获取书类型成功",booktypes);

    }


}
